<?php
/*
 * class.layout.php
 * 文件说明:后台界面布局
 * @version 0.1
 * @author samuel
 * @date 2009-05-07
 */
class admin_layout {

	private $core = null;

	function  __construct(Core $core) {
		$this->core = $core;

		$this->run();
	}

	function run(){
        $file = strtolower(trim($this->core->params['file']));
        switch($file){
            case 'leftmenu':
                $menu_obj = $this->core->load('admin::menu');
                $menus = $menu_obj->getMenu();
                $this->core->tpl->assign('menus', $menus);
                break;
        }

		$this->core->tpl->display( $file . ".html");
	}

}
?>
